﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PharmacyDomain
{
   public class DrugGeneric
    {
        #region Properties
        public Guid ID { get; set; }
        public string Name { get; set; }
        public string Administration { get; set; }
        public string SpecialPrecautions { get; set; }
        public string AdverseDrugReactions { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; }
        #endregion

        #region ForeignKeyProperties
        [ForeignKey("Category")]
        public int DrugCategoryID { get; set; }
        [ForeignKey("DrugClass")]
        public Guid DrugClassID { get; set; }
        [ForeignKey("Group")]
        public int GroupID { get; set; } 
        #endregion


        #region NavigationalProperties
        public virtual DrugCategory Category { get; set; }
        public virtual DrugClass DrugClass { get; set; }
        public virtual DrugGroup Group { get; set; }
        public virtual ICollection<Dosage> Dosage { get; set; }
        public virtual ICollection<DrugContraIndication> ContraIndications { get; set; }
        public virtual ICollection<DrugBrand> Brands { get; set; }      

       [InverseProperty("Drug1")]
       public virtual ICollection<DrugInteraction> DrugInteractions1 { get; set; }
        [InverseProperty("Drug2")]
       public virtual ICollection<DrugInteraction> DrugInteractions2 { get; set; }
       #endregion


    }
}
